home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
prog
/
word.arj
/
WGT31.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-28
|
443b
|
24 lines
#include <wgt.h>
#include <conio.h>
// WordUp Graphics Toolkit Demo program 31
// Shows how to use WGT library files.
int i;
block sprites[1001];
color pal[256];
void main(void)
{
vga256();
setlib("demo31.wlb");
setpassword("WGT");
wloadsprites(&pal,"Demo31.spr",sprites);
// Loads a sprite file from within demo31.wlb
wcls(0);
do {
wputblock(rand()%300,rand()%180,sprites[1],0);
} while (!kbhit());
textmode(C80);
}